package com.codingfuture.service.impl;

import com.codingfuture.dao.PersonDao;
import com.codingfuture.dao.impl.PersonDaoImpl;
import com.codingfuture.entity.Person;
import com.codingfuture.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author kobe
 * @Date 2021/11/5 09:04
 * @Description
 */
@Service
public class PersonServiceImpl implements PersonService {

    @Autowired
    PersonDao personDao;

    @Override
    public List<Person> findAll() {
        return personDao.findAll();
    }
}
